/**
 * Created by xiaomin on 2015/5/30.
 */

var MyServices = angular.module('MyServices',['ngResource']);

// 设置默认参数id为'articles'
MyServices.factory('Articles',['$resource',
    function($resource){
        return $resource('static/data/articles/:articleId.json',{},{
            query:{method:'GET',params:{articleId:'articles'},isArray:true}
        })
    }
]);
